package com.hq.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author hanq
 * 提供者：返回数据
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public Map<String,Object> hello(){

        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        Map<String,Object> map = new HashMap<String,Object>();

        map.put("name","张三");
        map.put("txt","你好");

        return map;
    }


}
